Latest Questions

Discord Bot Auto Deletes Links In certain Channels

im pretty new to javascript and i tried to get and modify a script that delete link if its not in the list, i tried multiple modification for hours but none suc

PS1.7 Move ProductComments into DisplayProductExtraContent

I am tryng to show product comments list (default Prestashop1.7 module productcomments) into a custom tab called "Comments" But the contents doesn't show.. trie

spark sql Find the number of extensions for a record

I have a dataset as below col1 extension_col1 2345 2246 2246 2134 2134 2091 2091 Null 1234 1111 1111 Null I need to find the number of extensions available fo

Octave error filename undefined near line 1 column 1

I tried to run a function with octave-GUI. I first write a function in 'testFunc.rtf'(in WordPad). function y = testFunc(x) y = x^2 + x^3 The path to this file

Virtualbox: "UUID already exists

I'm trying to install an Ubuntu guest on a windows host with Virtualbox. Whenever I try to create a VM the process fails. I get a message saying the that the vd

Export HANA SQL query or table in CSV

I use a HANA 2.0 database. I want to export a table or a sql query from the database to an external client as fast as possible and using a command line (i'm on

Why does Attr inherit from Node in the DOM?

according to the DOM Core, Attr objects inherit the Node interface, but since they are not actually child nodes of the element they describe, the DOM does not

Hide and show element and stay with the same option selected

i have this code if checkbox is checked i need to show my front_dashboard_custom_formula div and hide front_dashboard_formula_formula_id and set select null if

How can I add "TrustServerCertificate=Yes"; or "Encrypt=False;" to a SQL Server RDS in AWS?

While trying to run my migrations in a Laravel App I have in an EC2 server, I run into this error message. SQLSTATE[08001]: [Microsoft][ODBC Driver 18 for SQL

Dart 2.17 has warning when using code snipplet

I just update dart sdk to 2.17 and when I use snipplet (in VScode) to auto generate code for Stateless/Stateful it auto import these two package. But it tel

Auto run tests in visual studio code

How do I run the tests automatically in visual studio code. My project has testing setup, and the settings JSON/UI has settings related to auto running tests, b

Mapbox 10.4 iOS: Changing opacity of raster layer with a slider

I have just updated from Mapbox 10.3 to Mapbox 10.4, and have an issue with changing the raster layer opacity on the fly. I have a slider to change the raster

Storing and using GUI objects with Tkinter

So I have a class that just creates a gui with a text box to type into. I would like to store multiple of these objects and their content that is entered by the

custom program error: 0xbbf on anchor framework solana

const connection = new anchor.web3.Connection("https://api.devnet.solana.com"); const provider = new anchor.Provider(connection, wallet, { preflight

How to create a table inside a table cell in reportlab

I am in a situation where I need to create a table inside the table cell, which is the description field in the data which will be a list itself. I need to make

React - Why is geolocation state undefined when accessing it from another function

I'm trying to get the latitude and the longitude from geoLocation and use it to fetch data from a weather api. The problem however is that as soon as I pass lat

Is it possible to increase horizontal and vertical padding on ffmpeg burned subtitles - using .srt format?

Using command : ffmpeg -i source_video_path.mp4 -vf "subtitles=srt_source.srt:force_style='OutlineColour=&H80000000,BorderStyle=4,BackColour=&H80000000,

.env file shows errors(red underlines) in vscode - it works fine though

I'm having this project structure: Although the file works correctly but it shows errors(red underlines) in VSCODE. Why does this happen and how can we solve t

How to destructure object props in Vue the way like you would do in React inside a setup?

I am wondering how to destructure an object prop without having to type data.title, data.keywords, data.image etc. I've tried spreading the object directly, but

how to prevent privilege escalation by changing HTTP response values?

i want to know how to mitigate privilege escalation by changing the response values, for example in response body: isAdmin=false change it to isAdmin=true and g

Why does webapp specific context in tomcat 10 no longer work?

My application (SimpleWebApp) needs some context parameters defined. I have a SimpleWebApp.xml context file with the following content: <Context>

aerender from C# console Application

I'm trying to render an Adobe After Effects composition from a C# Console Application but it's not working. It doesn't even give any error, the code executes sm

Unable to receive flash (Class 0) SMS on Modem

I am experiencing with AT commands using a sim800 modem (Dinstar), I am unable to get the response of the STK command after STK send short message. When using m

i want to scrape another class if first class is not found (n/a) in beautifulsoup, how to code this?

I'm scraping Indiegogo to see how many backers there are. However, because there are two different formats, it first scrapes the content for the first layout, b

python file to excutable file at any operating system

Now I created a python app using tkinter which it should be used in pc, but I am using windows, so I executed the .py file to .exe. My problem now is my program

Trouble running the 'sudo docker-compose up' command

Image of the error I am trying to run the 'sudo docker-compose up' command to start some services. Recently, I created some new services, but I keep getting the

Laravel form post data from placeholder value

I want to pass the data on a form placeholder without user input, want to know if that is possible... Below is my form in view @extends('layouts.app') @section

Freqtrade Python Sell Sign

I am trying to create a sales order using the Freqtrade bot when: The current price hits the entry price + ATR. I don't know how I can retrieve the entry price

Syntax highlighting in egui Rust

I'm writing a text editor in Rust using egui. I am trying to implement syntax highlighting, so I followed the example in the demo. It works there, so I thought

How to set default values for a query param with array type in .Net.Core with Swashbuckle by code

I am currently working with .NET Core 3.1 and Swashbuckle library. I have made several endpoints with requests decorated with attributes and proper swagger desc